package lesson14;

public class PersonDemo {

		public static void main(String[] args) {
			
			int x = 3;
			String s = new String();
			
			Person ivan = new Person();
			Person maria = new Person();
			
			ivan.name = "Ivan";
			ivan.age = 25;
			ivan.personalNumber = "8612025281";
			
			maria.name = "Maria";
			maria.age = 21;
						
			System.out.println("first person`s name is = " + ivan.name);
			System.out.println("second person`s name is = " + maria.name);
			
			System.out.println("Ivan`s health = " + ivan.health);
			System.out.println("Ivan`s hunger = " + ivan.starvationStatus);
			System.out.println("Maria`s health = " + maria.health);
			System.out.println("Maria`s hunger = " + maria.starvationStatus);
			
			ivan.eat(10);
			maria.walk();

			System.out.println("Ivan`s health = " + ivan.health);
			System.out.println("Ivan`s hunger = " + ivan.starvationStatus);
			System.out.println("Maria`s health = " + maria.health);
			System.out.println("Maria`s hunger = " + maria.starvationStatus);
			
		}
}
